package com.teach;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-12 14:40
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Demo06 {
  public static void main(String[] args) {
    Boolean a = true;
    Boolean b = true;
    Boolean c = new Boolean(true);
    System.out.println(a.equals(b));//true
    System.out.println(a.equals(c));//true
    System.out.println(a==b);//true
    System.out.println(a==c);//false

    Integer a1 = -128;
    Integer a2 = -128;
    Integer a3 = 128;
    Integer a4 = 128;
    System.out.println(a1==a2);//true
    System.out.println(a3==a4);//false
    System.out.println(0.1f==0.1d);//false
    System.out.println(0.125f==0.125d);//true
  }
}
